<script lang="ts" setup>
import useStore from '@/store'; 
const { home} = useStore()
home.getBannerList()
</script>
<template>
  <div class="home-banner">
    <!-- 轮播图 -->
    <XtxCarousel 
    :list="home.bannerLsit" 
    autoplay
     isShowdots ></XtxCarousel>
  </div>
</template>

<style scoped lang="less">
// 在v3中 less 的深度选择器是 :deep(选择器){样式}
// 在v3中 scss 的深度选择器是 ::v-deep(选择器){样式}
:deep(.carousel-btn.prev){
  left: 260px !important;
}
:deep(.carousel-indicator){
  padding-left: 260px !important;
}
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
  background-color: pink;
}
</style>